package com.droowa.domain;

import java.io.Serializable;
import java.util.Date;

public class ReturnManagement implements Serializable{
	private int orderNumber;
	private String orderer;
	private String productName;
	private Date returnDate;
	private String returnProcess;
	public ReturnManagement() {
		super();
	}
	public ReturnManagement(int orderNumber, String orderer,
			String productName, Date returnDate, String returnProcess) {
		super();
		this.orderNumber = orderNumber;
		this.orderer = orderer;
		this.productName = productName;
		this.returnDate = returnDate;
		this.returnProcess = returnProcess;
	}
	public int getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(int orderNumber) {
		this.orderNumber = orderNumber;
	}
	public String getOrderer() {
		return orderer;
	}
	public void setOrderer(String orderer) {
		this.orderer = orderer;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public Date getReturnDate() {
		return returnDate;
	}
	public void setReturnDate(Date returnDate) {
		this.returnDate = returnDate;
	}
	public String getReturnProcess() {
		return returnProcess;
	}
	public void setReturnProcess(String returnProcess) {
		this.returnProcess = returnProcess;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + orderNumber;
		result = prime * result + ((orderer == null) ? 0 : orderer.hashCode());
		result = prime * result
				+ ((productName == null) ? 0 : productName.hashCode());
		result = prime * result
				+ ((returnDate == null) ? 0 : returnDate.hashCode());
		result = prime * result
				+ ((returnProcess == null) ? 0 : returnProcess.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ReturnManagement other = (ReturnManagement) obj;
		if (orderNumber != other.orderNumber)
			return false;
		if (orderer == null) {
			if (other.orderer != null)
				return false;
		} else if (!orderer.equals(other.orderer))
			return false;
		if (productName == null) {
			if (other.productName != null)
				return false;
		} else if (!productName.equals(other.productName))
			return false;
		if (returnDate == null) {
			if (other.returnDate != null)
				return false;
		} else if (!returnDate.equals(other.returnDate))
			return false;
		if (returnProcess == null) {
			if (other.returnProcess != null)
				return false;
		} else if (!returnProcess.equals(other.returnProcess))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "ReturnManagement [orderNumber=" + orderNumber + ", orderer="
				+ orderer + ", productName=" + productName + ", returnDate="
				+ returnDate + ", returnProcess=" + returnProcess + "]";
	}
	
	

}
